#include <iostream.h> // Zadanie 5.1
#include <iomanip.h>
#include <conio.h>

float a, b, pole;

void pole_prostokata() //deklaracja i definicja funkcji pole_prostokata()
{
cout << "Program oblicza pole prostokata." << endl;
cout << "Podaj bok a." << endl;
cin >> a;
cout << "Podaj bok b." << endl;
cin >> b;
pole = a*b;
cout << fixed << setprecision(2);
cout << "Pole prostokata o boku a = " << a << " i boku b = " << b;
cout << " wynosi " << pole << "." << endl;
}

main()
{
pole_prostokata(); // wywolanie funkcji pole_prostokata()

getch(); // czeka na nacisniecie dowolnego klawisza
}
